<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增道路基本信息')"/>
                                                                                                                                                                                                                                                            <th:block th:include="include :: datetimepicker-css"/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-information-add">
                                                                                                                                                    <div class="form-group">
                            <label class="col-sm-3 control-label">路线Py
                                ：</label>
                            <div class="col-sm-8">
                                <input name="firstRoadName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">路线
                                ：</label>
                            <div class="col-sm-8">
                                <input name="chroadName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">公司Py
                                ：</label>
                            <div class="col-sm-8">
                                <input name="companyName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">公司
                                ：</label>
                            <div class="col-sm-8">
                                <input name="company" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">公司排序
                                ：</label>
                            <div class="col-sm-8">
                                <input name="companySort" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">路段
                                ：</label>
                            <div class="col-sm-8">
                                <input name="roadName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">路线编号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="sectionId" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">启点
                                ：</label>
                            <div class="col-sm-8">
                                <input name="startName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">终点
                                ：</label>
                            <div class="col-sm-8">
                                <input name="endName" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">路线地区
                                ：</label>
                            <div class="col-sm-8">
                                <input name="location" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">起点桩号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="startpilenumber" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">终点桩号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="endpilenumber" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">排序
                                ：</label>
                            <div class="col-sm-8">
                                <input name="sort" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">开始年
                                ：</label>
                            <div class="col-sm-8">
                                <input name="starttime" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">路面结构
                                ：</label>
                            <div class="col-sm-8">
                                <select name="stru" class="form-control m-b"
                                        th:with="type=${@dict.getType('road-stru')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                            th:value="${dict.dictValue}"></option>
                                </select>
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">通车日期
                                ：</label>
                            <div class="col-sm-8">
                                <input name="opentime" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">衰变系数
                                ：</label>
                            <div class="col-sm-8">
                                <input name="suai" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建时间
                                ：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="createDate" class="form-control" placeholder="yyyy-MM-dd"
                                           type="text">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                                                                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">更新时间
                                ：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="updateDate" class="form-control" placeholder="yyyy-MM-dd"
                                           type="text">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注信息
                                ：</label>
                            <div class="col-sm-8">
                                <input name="remarks" class="form-control" type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">删除标记
                                ：</label>
                            <div class="col-sm-8">
                                <input name="delFlag" class="form-control" type="text"                                       required>
                            </div>
                        </div>
                                                                    </form>
</div>
<th:block th:include="include :: footer"/>
                                                                                                                                                                                                                                                        <th:block th:include="include :: datetimepicker-js"/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <script th:inline="javascript">
    var prefix = ctx + "road/information"
            $("#form-information-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-information-add').serialize());
        }
    }

            $("input[name='createDate']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });

            $("input[name='updateDate']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </script>
</body>
</html>
